FROM node:20.9.0-slim

WORKDIR /app

# Install pnpm
RUN npm install -g pnpm

# Copy package files
COPY package.json pnpm-lock.yaml* ./

# Install dependencies
RUN pnpm install

# Copy source code
COPY . .

# Create mocks directory
RUN mkdir -p /app/mocks

# Expose port
EXPOSE 3000

# Start the server
CMD ["pnpm", "start"] 